home *** CD-ROM | disk | FTP | other *** search
/ PC Advisor 2010 April / PCA177.iso / ESSENTIALS / Firefox Setup.exe / nonlocalized / chrome / browser.jar / content / browser / browser.xul < prev    next >
Encoding:
Extensible Markup Language  |  2009-07-15  |  78.7 KB  |  1,468 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://browser/content/places/places.css" type="text/css"?>
  5.  
  6. <?xml-stylesheet href="chrome://browser/skin/" type="text/css"?> 
  7.  
  8. <?xml-stylesheet href="chrome://global/skin/toolbar.css" type="text/css"?>
  9.  
  10. <?xul-overlay href="chrome://global/content/editMenuOverlay.xul"?>
  11. <?xul-overlay href="chrome://browser/content/baseMenuOverlay.xul"?>
  12. <?xul-overlay href="chrome://browser/content/places/placesOverlay.xul"?>
  13.  
  14. <!DOCTYPE window [
  15. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
  16. %brandDTD;
  17. <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
  18. %browserDTD;
  19. <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  20. %globalDTD;
  21. <!ENTITY % globalRegionDTD SYSTEM "chrome://global-region/locale/region.dtd">
  22. %globalRegionDTD;
  23. <!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charsetOverlay.dtd" >
  24. %charsetDTD;
  25. <!ENTITY % textcontextDTD SYSTEM "chrome://global/locale/textcontext.dtd" >
  26. %textcontextDTD;
  27. <!ENTITY % placesDTD SYSTEM "chrome://browser/locale/places/places.dtd">
  28. %placesDTD;
  29. <!ENTITY % safebrowsingDTD SYSTEM "chrome://browser/locale/safebrowsing/phishing-afterload-warning-message.dtd">
  30. %safebrowsingDTD;
  31. ]>
  32.  
  33.  
  34. <window id="main-window"
  35.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  36.         xmlns:svg="http://www.w3.org/2000/svg"
  37.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  38.         onload="BrowserStartup()" onunload="BrowserShutdown()" onclose="return WindowIsClosing();"
  39.         title="&mainWindow.title;"
  40.         title_normal="&mainWindow.title;"
  41.         title_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
  42.         titlemodifier="&mainWindow.titlemodifier;"
  43.         titlemodifier_normal="&mainWindow.titlemodifier;"
  44.         titlemodifier_privatebrowsing="&mainWindow.titlemodifier; &mainWindow.titlePrivateBrowsingSuffix;"
  45.         titlemenuseparator="&mainWindow.titlemodifiermenuseparator;"
  46.         windowtype="navigator:browser"
  47.         screenX="4" screenY="4"
  48.         browsingmode="normal"
  49.         persist="screenX screenY width height sizemode"> 
  50.  
  51.  
  52. <script type="application/x-javascript" src="chrome://global/content/printUtils.js"/>
  53. <script type="application/x-javascript" src="chrome://global/content/viewZoomOverlay.js"/>
  54. <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
  55. <script type="application/x-javascript" src="chrome://global/content/inlineSpellCheckUI.js"/>
  56. <script type="application/x-javascript" src="chrome://global/content/viewSourceUtils.js"/>
  57. <script type="application/x-javascript" src="chrome://browser/content/nsContextMenu.js"/>
  58.  
  59. <script type="application/x-javascript" src="chrome://browser/content/safebrowsing/sb-loader.js"/>
  60. <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
  61.  
  62. <script type="application/javascript" src="chrome://browser/content/places/editBookmarkOverlay.js"/>
  63.  
  64.  
  65.  
  66.   <stringbundleset id="stringbundleset"> 
  67.     <stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>
  68.     <stringbundle id="bundle_shell" src="chrome://browser/locale/shellservice.properties"/>
  69.     <stringbundle id="bundle_preferences" src="chrome://browser/locale/preferences/preferences.properties"/>
  70.   </stringbundleset>
  71.  
  72.   <commandset id="mainCommandSet">
  73.     <command id="cmd_newNavigator"                 oncommand="OpenBrowserWindow()"/>
  74.     <command id="cmd_handleBackspace" oncommand="BrowserHandleBackspace();" />
  75.     <command id="cmd_handleShiftBackspace" oncommand="BrowserHandleShiftBackspace();" />
  76.  
  77.     <command id="cmd_newNavigatorTab" oncommand="BrowserOpenTab();"/>
  78.     <command id="Browser:OpenFile"  oncommand="BrowserOpenFileWindow();"/>
  79.     <command id="Browser:SavePage" oncommand="saveDocument(window.content.document);"/>
  80.     <command id="Browser:SaveFrame" oncommand="saveFrameDocument();"/>
  81.  
  82.     <command id="Browser:SendLink"
  83.              oncommand="MailIntegration.sendLinkForWindow(window.content);"/>
  84.  
  85.     <command id="cmd_pageSetup" oncommand="PrintUtils.showPageSetup();"/>
  86.     <command id="cmd_print" oncommand="PrintUtils.print();"/>
  87.     <command id="cmd_printPreview" oncommand="PrintUtils.printPreview(onEnterPrintPreview, onExitPrintPreview);"/>
  88.     <command id="cmd_close" oncommand="BrowserCloseTabOrWindow()"/>
  89.     <command id="cmd_closeWindow" oncommand="BrowserTryToCloseWindow()"/>
  90.     <command id="cmd_toggleTaskbar" oncommand="goToggleToolbar('status-bar','toggle_taskbar');"/>
  91.     <command id="cmd_CustomizeToolbars" oncommand="BrowserCustomizeToolbar()"/>
  92.     <command id="cmd_quitApplication" oncommand="goQuitApplication()"/>
  93.  
  94.  
  95.     <commandset id="editMenuCommands"/>
  96.  
  97.     <command id="View:PageSource" oncommand="BrowserViewSourceOfDocument(content.document);" observes="isImage"/>
  98.     <command id="View:PageInfo" oncommand="BrowserPageInfo();"/>
  99.     <command id="View:FullScreen" oncommand="BrowserFullScreen();"/>
  100.     <command id="cmd_find"
  101.              oncommand="gFindBar.onFindCommand();"
  102.              observes="isImage"/>
  103.     <command id="cmd_findAgain"
  104.              oncommand="gFindBar.onFindAgainCommand(false);"
  105.              observes="isImage"/>
  106.     <command id="cmd_findPrevious"
  107.              oncommand="gFindBar.onFindAgainCommand(true);"
  108.              observes="isImage"/>
  109.     <!-- work-around bug 392512 -->
  110.     <command id="Browser:AddBookmarkAs" 
  111.              oncommand="PlacesCommandHook.bookmarkCurrentPage(true, PlacesUtils.bookmarksMenuFolderId);"/>
  112.     <!-- The command is disabled for the hidden window. Otherwise its enabled
  113.          state is handled by the BookmarkAllTabsHandler object. -->
  114.     <command id="Browser:BookmarkAllTabs"
  115.              oncommand="gBookmarkAllTabsHandler.doCommand();"
  116.              disabled="true"/>
  117.     <command id="Browser:Home"    oncommand="BrowserHome();"/>
  118.     <command id="Browser:Back"    oncommand="BrowserBack();" disabled="true"/>
  119.     <command id="Browser:BackOrBackDuplicate" oncommand="BrowserBack(event);" disabled="true">
  120.       <observes element="Browser:Back" attribute="disabled"/>
  121.     </command>
  122.     <command id="Browser:Forward" oncommand="BrowserForward();" disabled="true"/>
  123.     <command id="Browser:ForwardOrForwardDuplicate" oncommand="BrowserForward(event);" disabled="true">
  124.       <observes element="Browser:Forward" attribute="disabled"/>
  125.     </command>
  126.     <command id="Browser:Stop"    oncommand="BrowserStop();" disabled="true"/>
  127.     <command id="Browser:Reload"  oncommand="if (event.shiftKey) BrowserReloadSkipCache(); else BrowserReload()" disabled="true"/>
  128.     <command id="Browser:ReloadOrDuplicate" oncommand="BrowserReloadOrDuplicate(event)" disabled="true">
  129.       <observes element="Browser:Reload" attribute="disabled"/>
  130.     </command>
  131.     <command id="Browser:ReloadSkipCache" oncommand="BrowserReloadSkipCache()" disabled="true">
  132.       <observes element="Browser:Reload" attribute="disabled"/>
  133.     </command>
  134.     <command id="Browser:NextTab" oncommand="gBrowser.mTabContainer.advanceSelectedTab(1, true);"/>
  135.     <command id="Browser:PrevTab" oncommand="gBrowser.mTabContainer.advanceSelectedTab(-1, true);"/>
  136.     <command id="cmd_fullZoomReduce"  oncommand="FullZoom.reduce()"/>
  137.     <command id="cmd_fullZoomEnlarge" oncommand="FullZoom.enlarge()"/>
  138.     <command id="cmd_fullZoomReset"   oncommand="FullZoom.reset()"/>
  139.     <command id="cmd_fullZoomToggle"  oncommand="ZoomManager.toggleZoom();"/>
  140.     <command id="Browser:OpenLocation" oncommand="openLocation();"/>
  141.  
  142.     <command id="Tools:Search" oncommand="BrowserSearch.webSearch();"/>    
  143.     <command id="Tools:Downloads" oncommand="BrowserDownloadsUI();"/>
  144.     <command id="Tools:Addons" oncommand="BrowserOpenAddonsMgr();"/>
  145.     <command id="Tools:Sanitize"
  146.      oncommand="Cc[GLUE_CID].getService(Ci.nsIBrowserGlue).sanitize(window || null);"/>
  147.     <command id="Tools:PrivateBrowsing" oncommand="gPrivateBrowsingUI.toggleMode();"/>
  148.     <command id="History:UndoCloseTab" oncommand="undoCloseTab();"/>
  149.     <command id="History:UndoCloseWindow" oncommand="undoCloseWindow();"/>
  150.   </commandset>
  151.  
  152.   <commandset id="placesCommands">
  153.     <command id="Browser:ShowAllBookmarks"
  154.              oncommand="PlacesCommandHook.showPlacesOrganizer('AllBookmarks');"/>
  155.     <command id="Browser:ShowAllHistory"
  156.              oncommand="PlacesCommandHook.showPlacesOrganizer('History');"/>
  157.   </commandset>
  158.  
  159.   <broadcasterset id="mainBroadcasterSet">
  160.     <broadcaster id="viewBookmarksSidebar" autoCheck="false" label="&bookmarksButton.label;"
  161.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/bookmarks/bookmarksPanel.xul"
  162.                  oncommand="toggleSidebar('viewBookmarksSidebar');"/>
  163.  
  164.     <!-- for both places and non-places, the sidebar lives at 
  165.          chrome://browser/content/history/history-panel.xul so there are no
  166.          problems when switching between versions -->
  167.     <broadcaster id="viewHistorySidebar" autoCheck="false" sidebartitle="&historyButton.label;"
  168.                  type="checkbox" group="sidebar" 
  169.                  sidebarurl="chrome://browser/content/history/history-panel.xul"
  170.                  oncommand="toggleSidebar('viewHistorySidebar');"/>
  171.                  
  172.     <broadcaster id="viewWebPanelsSidebar" autoCheck="false" 
  173.                  type="checkbox" group="sidebar" sidebarurl="chrome://browser/content/web-panels.xul"
  174.                  oncommand="toggleSidebar('viewWebPanelsSidebar');"/>
  175.  
  176.     <!-- popup blocking menu items -->
  177.     <broadcaster id="blockedPopupAllowSite" 
  178.                  accesskey="&allowPopups.accesskey;" 
  179.                  oncommand="gPopupBlockerObserver.toggleAllowPopupsForSite(event);"/>
  180.     <broadcaster id="blockedPopupEditSettings" 
  181.                  label="&editPopupSettings.label;"
  182.                  accesskey="&editPopupSettings.accesskey;" 
  183.                  oncommand="gPopupBlockerObserver.editPopupSettings();"/>
  184.     <broadcaster id="blockedPopupDontShowMessage" 
  185.                  accesskey="&dontShowMessage.accesskey;" 
  186.                  type="checkbox"
  187.                  oncommand="gPopupBlockerObserver.dontShowMessage();"/>
  188.     <broadcaster id="blockedPopupsSeparator"/>
  189.     <broadcaster id="isImage"/>
  190.     <broadcaster id="isFrameImage"/>
  191.   </broadcasterset>
  192.  
  193.   <keyset id="mainKeyset">
  194.     <key id="key_newNavigator"
  195.          key="&newNavigatorCmd.key;"
  196.          command="cmd_newNavigator"
  197.          modifiers="accel"/>
  198.     <key id="key_newNavigatorTab" key="&tabCmd.commandkey;" modifiers="accel" command="cmd_newNavigatorTab"/>
  199.     <key id="focusURLBar" key="&openCmd.commandkey;" command="Browser:OpenLocation"
  200.          modifiers="accel"/>
  201.     <key id="focusURLBar2" key="&urlbar.accesskey;" command="Browser:OpenLocation"
  202.          modifiers="alt"/>
  203.  
  204.     <key id="key_search" key="&searchFocus.commandkey;" command="Tools:Search" modifiers="accel"/>
  205.     <key id="key_search2" key="&searchFocus.commandkey2;" command="Tools:Search" modifiers="accel"/>
  206.     <key id="key_openDownloads" key="&downloads.commandkey;" command="Tools:Downloads" modifiers="accel"/>
  207.     <key id="key_errorConsole" key="&errorConsoleCmd.commandkey;" oncommand="toJavaScriptConsole();" modifiers="accel,shift"/>
  208.     <key id="openFileKb" key="&openFileCmd.commandkey;" command="Browser:OpenFile"  modifiers="accel"/>
  209.     <key id="key_savePage" key="&savePageCmd.commandkey;" command="Browser:SavePage" modifiers="accel"/>
  210.     <key id="printKb" key="&printCmd.commandkey;" command="cmd_print"  modifiers="accel"/>
  211.     <key id="key_close" key="&closeCmd.key;" command="cmd_close" modifiers="accel"/>
  212.     <key id="key_closeWindow" key="&closeCmd.key;" command="cmd_closeWindow" modifiers="accel,shift"/>
  213.     <key id="key_undo"
  214.          key="&undoCmd.key;"
  215.          modifiers="accel"/>
  216.     <key id="key_redo" key="&redoCmd.key;" modifiers="accel"/>
  217.     <key id="key_cut"
  218.          key="&cutCmd.key;"
  219.          modifiers="accel"/>
  220.     <key id="key_copy"
  221.          key="©Cmd.key;"
  222.          modifiers="accel"/>
  223.     <key id="key_paste"
  224.          key="&pasteCmd.key;"
  225.          modifiers="accel"/>
  226.     <key id="key_delete" keycode="VK_DELETE" command="cmd_delete"/>
  227.     <key id="key_selectAll" key="&selectAllCmd.key;" modifiers="accel"/>
  228.  
  229.     <key keycode="VK_BACK" command="cmd_handleBackspace"/>
  230.     <key keycode="VK_BACK" command="cmd_handleShiftBackspace" modifiers="shift"/>
  231.     <key id="goBackKb"  keycode="VK_LEFT" command="Browser:Back" modifiers="alt"/>
  232.     <key id="goForwardKb"  keycode="VK_RIGHT" command="Browser:Forward" modifiers="alt"/>
  233.     <key id="goHome" keycode="VK_HOME" command="Browser:Home" modifiers="alt"/>
  234.     <key keycode="VK_F5" command="Browser:Reload"/>
  235.     <key id="showAllHistoryKb" key="&showAllHistoryCmd.commandkey;" command="Browser:ShowAllHistory" modifiers="accel,shift"/>
  236.     <key keycode="VK_F5" command="Browser:ReloadSkipCache" modifiers="accel"/>
  237.     <key id="key_fullScreen" keycode="VK_F11" command="View:FullScreen"/>
  238.     <key key="&reloadCmd.commandkey;" command="Browser:Reload" modifiers="accel" id="key_reload"/>
  239.     <key key="&reloadCmd.commandkey;" command="Browser:ReloadSkipCache" modifiers="accel,shift"/>
  240.     <key id="key_viewSource" key="&pageSourceCmd.commandkey;" command="View:PageSource" modifiers="accel"/>
  241.     <key id="key_find" key="&findOnCmd.commandkey;" command="cmd_find" modifiers="accel"/>
  242.     <key id="key_findAgain" key="&findAgainCmd.commandkey;" command="cmd_findAgain" modifiers="accel"/>
  243.     <key id="key_findPrevious" key="&findAgainCmd.commandkey;" command="cmd_findPrevious" modifiers="accel,shift"/>
  244.     <key keycode="&findAgainCmd.commandkey2;" command="cmd_findAgain"/>
  245.     <key keycode="&findAgainCmd.commandkey2;"  command="cmd_findPrevious" modifiers="shift"/>
  246.  
  247.     <key id="addBookmarkAsKb" key="&bookmarkThisPageCmd.commandkey;" command="Browser:AddBookmarkAs" modifiers="accel"/>
  248.     <key id="bookmarkAllTabsKb" key="&bookmarkThisPageCmd.commandkey;" command="Browser:BookmarkAllTabs" modifiers="accel,shift"/>
  249.     <key id="manBookmarkKb" key="&bookmarksSidebarCmd.commandkey;" command="Browser:ShowAllBookmarks" modifiers="accel,shift"/>
  250.     <key id="viewBookmarksSidebarKb" key="&bookmarksSidebarCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
  251.     <key id="viewBookmarksSidebarWinKb" key="&bookmarksSidebarWinCmd.commandkey;" command="viewBookmarksSidebar" modifiers="accel"/>
  252.  
  253.     <key id="key_stop" keycode="VK_ESCAPE" oncommand="BrowserStop();"/>
  254.     
  255.  
  256.     <key id="key_gotoHistory"
  257.          key="&historySidebarCmd.commandKey;"
  258.          modifiers="accel"
  259.          command="viewHistorySidebar"/>
  260.  
  261.     <key id="key_fullZoomReduce"  key="&fullZoomReduceCmd.commandkey;"   command="cmd_fullZoomReduce"  modifiers="accel"/>
  262.     <key                          key="&fullZoomReduceCmd.commandkey2;"  command="cmd_fullZoomReduce"  modifiers="accel"/>
  263.     <key id="key_fullZoomEnlarge" key="&fullZoomEnlargeCmd.commandkey;"  command="cmd_fullZoomEnlarge" modifiers="accel"/>
  264.     <key                          key="&fullZoomEnlargeCmd.commandkey2;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
  265.     <key                          key="&fullZoomEnlargeCmd.commandkey3;" command="cmd_fullZoomEnlarge" modifiers="accel"/>
  266.     <key id="key_fullZoomReset"   key="&fullZoomResetCmd.commandkey;"    command="cmd_fullZoomReset"   modifiers="accel"/>
  267.     <key                          key="&fullZoomResetCmd.commandkey2;"   command="cmd_fullZoomReset"   modifiers="accel"/>
  268.     
  269.     <key id="key_switchTextDirection" key="&bidiSwitchTextDirectionItem.commandkey;" command="cmd_switchTextDirection" modifiers="accel,shift" />
  270.  
  271.     <key id="key_privatebrowsing" command="Tools:PrivateBrowsing" key="&privateBrowsingCmd.commandkey;" modifiers="accel,shift"/>
  272.     <key id="key_sanitize" command="Tools:Sanitize" keycode="VK_DELETE" modifiers="accel,shift"/>
  273.  
  274.     <key id="key_undoCloseTab" command="History:UndoCloseTab" key="&tabCmd.commandkey;" modifiers="accel,shift"/>
  275.     <key id="key_undoCloseWindow" command="History:UndoCloseWindow" key="&newNavigatorCmd.key;" modifiers="accel,shift"/>
  276.  
  277.  
  278.    <key id="key_selectTab1" oncommand="gBrowser.selectTabAtIndex(0, event);" key="1" modifiers="accel"/>
  279.    <key id="key_selectTab2" oncommand="gBrowser.selectTabAtIndex(1, event);" key="2" modifiers="accel"/>
  280.    <key id="key_selectTab3" oncommand="gBrowser.selectTabAtIndex(2, event);" key="3" modifiers="accel"/>
  281.    <key id="key_selectTab4" oncommand="gBrowser.selectTabAtIndex(3, event);" key="4" modifiers="accel"/>
  282.    <key id="key_selectTab5" oncommand="gBrowser.selectTabAtIndex(4, event);" key="5" modifiers="accel"/>
  283.    <key id="key_selectTab6" oncommand="gBrowser.selectTabAtIndex(5, event);" key="6" modifiers="accel"/>
  284.    <key id="key_selectTab7" oncommand="gBrowser.selectTabAtIndex(6, event);" key="7" modifiers="accel"/>
  285.    <key id="key_selectTab8" oncommand="gBrowser.selectTabAtIndex(7, event);" key="8" modifiers="accel"/>
  286.    <key id="key_selectLastTab" oncommand="gBrowser.selectTabAtIndex(-1, event);" key="9" modifiers="accel"/>
  287.  
  288.   </keyset>
  289.  
  290.   <keyset id="baseMenuKeyset" />
  291.  
  292.   <popupset id="mainPopupSet">
  293.     <menupopup id="backForwardMenu"
  294.                chromedir="&locale.dir;"
  295.                onpopupshowing="return FillHistoryMenu(event.target);"
  296.                oncommand="gotoHistoryIndex(event);"
  297.                onclick="checkForMiddleClick(this, event);"/>
  298.     <tooltip id="aHTMLTooltip" onpopupshowing="return FillInHTMLTooltip(document.tooltipNode);"/>
  299.  
  300.     <!-- for search and content formfill/pw manager -->
  301.     <panel type="autocomplete" chromedir="&locale.dir;" id="PopupAutoComplete" noautofocus="true" hidden="true"/>
  302.  
  303.     <!-- for url bar autocomplete -->
  304.     <panel type="autocomplete-richlistbox" chromedir="&locale.dir;" id="PopupAutoCompleteRichResult" noautofocus="true" hidden="true"/>
  305.  
  306.     <panel id="editBookmarkPanel"
  307.            orient="vertical"
  308.            ignorekeys="true"
  309.            hidden="true"
  310.            onpopupshown="StarUI.panelShown(event);"
  311.            aria-labelledby="editBookmarkPanelTitle">
  312.       <row id="editBookmarkPanelHeader" align="center" hidden="true">
  313.         <vbox align="center">
  314.           <image id="editBookmarkPanelStarIcon"/>
  315.         </vbox>
  316.         <vbox>
  317.           <label id="editBookmarkPanelTitle"/>
  318.           <description id="editBookmarkPanelDescription"/>
  319.           <hbox>
  320.             <button id="editBookmarkPanelUndoRemoveButton"
  321.                     hidden="true"
  322.                     oncommand="StarUI.undoRemoveBookmarkCommand();"
  323.                     label="&editBookmark.undo.label;"
  324.                     accesskey="&editBookmark.undo.accessKey;"/>
  325.             <button id="editBookmarkPanelRemoveButton"
  326.                     oncommand="StarUI.removeBookmarkButtonCommand();"
  327.                     accesskey="&editBookmark.removeBookmark.accessKey;"/>
  328.             <button id="editBookmarkPanelEditButton"
  329.                     oncommand="StarUI.editButtonCommand();"
  330.                     label="&editBookmark.edit.label;"
  331.                     accesskey="&editBookmark.edit.accessKey;"/>
  332.           </hbox>
  333.         </vbox>
  334.       </row>
  335.       <vbox id="editBookmarkPanelContent" flex="1" hidden="true"/>
  336.       <hbox id="editBookmarkPanelBottomButtons" pack="end">
  337.         <button id="editBookmarkPanelDoneButton"
  338.                 label="&editBookmark.done.label;"
  339.                 default="true"
  340.                 oncommand="StarUI.panel.hidePopup();"/>
  341.         <button id="editBookmarkPanelDeleteButton"
  342.                 label="&editBookmark.cancel.label;"
  343.                 oncommand="StarUI.cancelButtonOnCommand();"/>
  344.       </hbox>
  345.     </panel>
  346.  
  347.     <popup id="toolbar-context-menu"
  348.            onpopupshowing="onViewToolbarsPopupShowing(event);">
  349.       <menuseparator/>
  350.       <menuitem command="cmd_CustomizeToolbars"
  351.                 label="&viewCustomizeToolbar.label;"
  352.                 accesskey="&viewCustomizeToolbar.accesskey;"/>
  353.     </popup>
  354.  
  355.     <popup id="blockedPopupOptions" 
  356.            onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
  357.       <menuitem observes="blockedPopupAllowSite"/>
  358.       <menuitem observes="blockedPopupEditSettings"/>
  359.       <menuitem observes="blockedPopupDontShowMessage"/>
  360.       <menuseparator observes="blockedPopupsSeparator"/>
  361.     </popup>
  362.  
  363.     <menupopup id="autohide-context"
  364.            onpopupshowing="FullScreen.getAutohide(this.firstChild);">
  365.       <menuitem type="checkbox" label="&fullScreenAutohide.label;"
  366.                 accesskey="&fullScreenAutohide.accesskey;"
  367.                 oncommand="FullScreen.setAutohide();"/>
  368.       <menuseparator/>
  369.       <menuitem label="&fullScreenExit.label;"
  370.                 accesskey="&fullScreenExit.accesskey;"
  371.                 oncommand="BrowserFullScreen();"/>
  372.     </menupopup>
  373.  
  374.     <popup id="contentAreaContextMenu"
  375.            onpopupshowing="if (event.target != this) return true; updateEditUIVisibility(); gContextMenu = new nsContextMenu(this, window.getBrowser()); return gContextMenu.shouldDisplay;"
  376.            onpopuphiding="if (event.target == this) { gContextMenu = null; updateEditUIVisibility(); }">
  377.  
  378.       <menuitem id="spell-no-suggestions"
  379.                 disabled="true"
  380.                 label="&spellNoSuggestions.label;"/>
  381.       <menuitem id="spell-add-to-dictionary"
  382.                 label="&spellAddToDictionary.label;"
  383.                 accesskey="&spellAddToDictionary.accesskey;"
  384.                 oncommand="InlineSpellCheckerUI.addToDictionary();"/>
  385.       <menuseparator id="spell-suggestions-separator"/>
  386.       <menuitem id="context-openlink"
  387.                 label="&openLinkCmd.label;"
  388.                 accesskey="&openLinkCmd.accesskey;"
  389.                 oncommand="gContextMenu.openLink();"/>
  390.       <menuitem id="context-openlinkintab"
  391.                 label="&openLinkCmdInTab.label;"
  392.                 accesskey="&openLinkCmdInTab.accesskey;"
  393.                 oncommand="gContextMenu.openLinkInTab();"/>
  394.       <menuseparator id="context-sep-open"/>
  395.       <menuitem id="context-bookmarklink"
  396.                 label="&bookmarkThisLinkCmd.label;"
  397.                 accesskey="&bookmarkThisLinkCmd.accesskey;"
  398.                 oncommand="gContextMenu.bookmarkLink();"/>
  399.       <menuitem id="context-savelink"
  400.                 label="&saveLinkCmd.label;"
  401.                 accesskey="&saveLinkCmd.accesskey;"
  402.                 oncommand="gContextMenu.saveLink();"/>
  403.       <menuitem id="context-sendlink"
  404.                 label="&sendLinkCmd.label;"
  405.                 accesskey="&sendLinkCmd.accesskey;"
  406.                 oncommand="gContextMenu.sendLink();"/>
  407.       <menuitem id="context-copyemail"
  408.                 label="©EmailCmd.label;"
  409.                 accesskey="©EmailCmd.accesskey;"
  410.                 oncommand="gContextMenu.copyEmail();"/>
  411.       <menuitem id="context-copylink"
  412.                 label="©LinkCmd.label;"
  413.                 accesskey="©LinkCmd.accesskey;"
  414.                 oncommand="goDoCommand('cmd_copyLink');"/>
  415.       <menuseparator id="context-sep-copylink"/>
  416.       <menuitem id="context-media-play"
  417.                 label="&mediaPlay.label;"
  418.                 accesskey="&mediaPlay.accesskey;"
  419.                 oncommand="gContextMenu.mediaCommand('play');"/>
  420.       <menuitem id="context-media-pause"
  421.                 label="&mediaPause.label;"
  422.                 accesskey="&mediaPause.accesskey;"
  423.                 oncommand="gContextMenu.mediaCommand('pause');"/>
  424.       <menuitem id="context-media-mute"
  425.                 label="&mediaMute.label;"
  426.                 accesskey="&mediaMute.accesskey;"
  427.                 oncommand="gContextMenu.mediaCommand('mute');"/>
  428.       <menuitem id="context-media-unmute"
  429.                 label="&mediaUnmute.label;"
  430.                 accesskey="&mediaUnmute.accesskey;"
  431.                 oncommand="gContextMenu.mediaCommand('unmute');"/>
  432.       <menuitem id="context-media-showcontrols"
  433.                 label="&mediaShowControls.label;"
  434.                 accesskey="&mediaShowControls.accesskey;"
  435.                 oncommand="gContextMenu.mediaCommand('showcontrols');"/>
  436.       <menuitem id="context-media-hidecontrols"
  437.                 label="&mediaHideControls.label;"
  438.                 accesskey="&mediaHideControls.accesskey;"
  439.                 oncommand="gContextMenu.mediaCommand('hidecontrols');"/>
  440.       <menuseparator id="context-media-sep-commands"/>
  441.       <menuitem id="context-reloadimage"
  442.                 label="&reloadImageCmd.label;"
  443.                 accesskey="&reloadImageCmd.accesskey;"
  444.                 oncommand="gContextMenu.reloadImage();"/>
  445.       <menuitem id="context-viewimage"
  446.                 label="&viewImageCmd.label;"
  447.                 accesskey="&viewImageCmd.accesskey;"
  448.                 oncommand="gContextMenu.viewMedia(event);"
  449.                 onclick="checkForMiddleClick(this, event);"/>
  450.       <menuitem id="context-viewvideo"
  451.                 label="&viewVideoCmd.label;"
  452.                 accesskey="&viewVideoCmd.accesskey;"
  453.                 oncommand="gContextMenu.viewMedia(event);"
  454.                 onclick="checkForMiddleClick(this, event);"/>
  455.       <menuitem id="context-copyimage-contents"
  456.                 label="©ImageContentsCmd.label;"
  457.                 accesskey="©ImageContentsCmd.accesskey;"
  458.                 oncommand="goDoCommand('cmd_copyImageContents');"/>
  459.       <menuitem id="context-copyimage"
  460.                 label="©ImageCmd.label;"
  461.                 accesskey="©ImageCmd.accesskey;"
  462.                 oncommand="gContextMenu.copyMediaLocation();"/>
  463.       <menuitem id="context-copyvideourl"
  464.                 label="©VideoURLCmd.label;"
  465.                 accesskey="©VideoURLCmd.accesskey;"
  466.                 oncommand="gContextMenu.copyMediaLocation();"/>
  467.       <menuitem id="context-copyaudiourl"
  468.                 label="©AudioURLCmd.label;"
  469.                 accesskey="©AudioURLCmd.accesskey;"
  470.                 oncommand="gContextMenu.copyMediaLocation();"/>
  471.       <menuseparator id="context-sep-copyimage"/>
  472.       <menuitem id="context-saveimage"
  473.                 label="&saveImageCmd.label;"
  474.                 accesskey="&saveImageCmd.accesskey;"
  475.                 oncommand="gContextMenu.saveMedia();"/>
  476.       <menuitem id="context-sendimage"  
  477.                 label="&sendImageCmd.label;" 
  478.                 accesskey="&sendImageCmd.accesskey;" 
  479.                 oncommand="gContextMenu.sendMedia();"/>
  480.       <menuitem id="context-setDesktopBackground"
  481.                 label="&setDesktopBackgroundCmd.label;"
  482.                 accesskey="&setDesktopBackgroundCmd.accesskey;"
  483.                 oncommand="gContextMenu.setDesktopBackground();"/>
  484.       <menuitem id="context-blockimage"
  485.                 type="checkbox"
  486.                 accesskey="&blockImageCmd.accesskey;"
  487.                 oncommand="gContextMenu.toggleImageBlocking(this.getAttribute('checked') == 'true');"/>
  488.       <menuitem id="context-savevideo"
  489.                 label="&saveVideoCmd.label;"
  490.                 accesskey="&saveVideoCmd.accesskey;"
  491.                 oncommand="gContextMenu.saveMedia();"/>
  492.       <menuitem id="context-saveaudio"
  493.                 label="&saveAudioCmd.label;"
  494.                 accesskey="&saveAudioCmd.accesskey;"
  495.                 oncommand="gContextMenu.saveMedia();"/>
  496.       <menuitem id="context-sendvideo"
  497.                 label="&sendVideoCmd.label;"
  498.                 accesskey="&sendVideoCmd.accesskey;"
  499.                 oncommand="gContextMenu.sendMedia();"/>
  500.       <menuitem id="context-sendaudio"
  501.                 label="&sendAudioCmd.label;"
  502.                 accesskey="&sendAudioCmd.accesskey;"
  503.                 oncommand="gContextMenu.sendMedia();"/>
  504.       <menuitem id="context-back"
  505.                 label="&backCmd.label;"
  506.                 accesskey="&backCmd.accesskey;"
  507.                 chromedir="&locale.dir;"
  508.                 command="Browser:BackOrBackDuplicate"
  509.                 onclick="checkForMiddleClick(this, event);"/>
  510.       <menuitem id="context-forward"
  511.                 label="&forwardCmd.label;"
  512.                 accesskey="&forwardCmd.accesskey;"
  513.                 chromedir="&locale.dir;"
  514.                 command="Browser:ForwardOrForwardDuplicate"
  515.                 onclick="checkForMiddleClick(this, event);"/>
  516.       <menuitem id="context-reload"
  517.                 label="&reloadCmd.label;"
  518.                 accesskey="&reloadCmd.accesskey;"
  519.                 command="Browser:ReloadOrDuplicate"
  520.                 onclick="checkForMiddleClick(this, event);"/>
  521.       <menuitem id="context-stop"
  522.                 label="&stopCmd.label;"
  523.                 accesskey="&stopCmd.accesskey;"
  524.                 command="Browser:Stop"/>
  525.       <menuseparator id="context-sep-stop"/>
  526.       <menuitem id="context-bookmarkpage"
  527.                 label="&bookmarkPageCmd2.label;"
  528.                 accesskey="&bookmarkPageCmd2.accesskey;"
  529.                 oncommand="gContextMenu.bookmarkThisPage();"/>
  530.       <menuitem id="context-savepage"
  531.                 label="&savePageCmd.label;"
  532.                 accesskey="&savePageCmd.accesskey2;"
  533.                 oncommand="gContextMenu.savePageAs();"/>
  534.       <menuitem id="context-sendpage"  
  535.                 label="&sendPageCmd.label;" 
  536.                 accesskey="&sendPageCmd.accesskey;" 
  537.                 oncommand="gContextMenu.sendPage();"/>
  538.       <menuseparator id="context-sep-viewbgimage"/>  
  539.       <menuitem id="context-viewbgimage"
  540.                 label="&viewBGImageCmd.label;"
  541.                 accesskey="&viewBGImageCmd.accesskey;"
  542.                 oncommand="gContextMenu.viewBGImage(event);"
  543.                 onclick="checkForMiddleClick(this, event);"/>
  544.       <menuitem id="context-undo"
  545.                 label="&undoCmd.label;"
  546.                 accesskey="&undoCmd.accesskey;"
  547.                 command="cmd_undo"/>
  548.       <menuseparator id="context-sep-undo"/>
  549.       <menuitem id="context-cut"
  550.                 label="&cutCmd.label;"
  551.                 accesskey="&cutCmd.accesskey;"
  552.                 command="cmd_cut"/>
  553.       <menuitem id="context-copy"
  554.                 label="©Cmd.label;"
  555.                 accesskey="©Cmd.accesskey;"
  556.                 command="cmd_copy"/>
  557.       <menuitem id="context-paste"
  558.                 label="&pasteCmd.label;"
  559.                 accesskey="&pasteCmd.accesskey;"
  560.                 command="cmd_paste"/>
  561.       <menuitem id="context-delete"
  562.                 label="&deleteCmd.label;"
  563.                 accesskey="&deleteCmd.accesskey;"
  564.                 command="cmd_delete"/>
  565.       <menuseparator id="context-sep-paste"/>
  566.       <menuitem id="context-selectall"
  567.                 label="&selectAllCmd.label;"
  568.                 accesskey="&selectAllCmd.accesskey;"
  569.                 command="cmd_selectAll"/>      
  570.       <menuseparator id="context-sep-selectall"/>
  571.       <menuitem id="context-keywordfield"
  572.                 label="&keywordfield.label;"
  573.                 accesskey="&keywordfield.accesskey;"
  574.                 oncommand="AddKeywordForSearchField();"/>
  575.       <menuitem id="context-searchselect"
  576.                 oncommand="BrowserSearch.loadSearch(getBrowserSelection(), true);"/>
  577.       <menuseparator id="frame-sep"/>
  578.       <menu id="frame" label="&thisFrameMenu.label;" accesskey="&thisFrameMenu.accesskey;">
  579.         <menupopup>
  580.           <menuitem id="context-showonlythisframe"
  581.                     label="&showOnlyThisFrameCmd.label;"
  582.                     accesskey="&showOnlyThisFrameCmd.accesskey;"
  583.                     oncommand="gContextMenu.showOnlyThisFrame();"/>
  584.           <menuitem id="context-openframe"
  585.                     label="&openFrameCmd.label;"
  586.                     accesskey="&openFrameCmd.accesskey;"
  587.                     oncommand="gContextMenu.openFrame();"/>
  588.           <menuitem id="context-openframeintab"
  589.                     label="&openFrameCmdInTab.label;"
  590.                     accesskey="&openFrameCmdInTab.accesskey;"
  591.                     oncommand="gContextMenu.openFrameInTab();"/>
  592.           <menuseparator/>
  593.           <menuitem id="context-reloadframe"
  594.                     label="&reloadFrameCmd.label;"
  595.                     accesskey="&reloadFrameCmd.accesskey;"
  596.                     oncommand="gContextMenu.reloadFrame();"/>
  597.           <menuseparator/>
  598.           <menuitem id="context-bookmarkframe"
  599.                     label="&bookmarkThisFrameCmd.label;"
  600.                     accesskey="&bookmarkThisFrameCmd.accesskey;"
  601.                     oncommand="gContextMenu.addBookmarkForFrame();"/>
  602.           <menuitem id="context-saveframe"
  603.                     label="&saveFrameCmd.label;"
  604.                     accesskey="&saveFrameCmd.accesskey;"
  605.                     oncommand="gContextMenu.saveFrame();"/>
  606.           <menuseparator/>
  607.           <menuitem id="context-printframe"
  608.                     label="&printFrameCmd.label;"
  609.                     accesskey="&printFrameCmd.accesskey;"
  610.                     oncommand="gContextMenu.printFrame();"/>
  611.           <menuseparator/>
  612.           <menuitem id="context-viewframesource"
  613.                     label="&viewFrameSourceCmd.label;"
  614.                     accesskey="&viewFrameSourceCmd.accesskey;"
  615.                     oncommand="gContextMenu.viewFrameSource();"
  616.                     observes="isFrameImage"/>
  617.           <menuitem id="context-viewframeinfo"
  618.                     label="&viewFrameInfoCmd.label;"
  619.                     accesskey="&viewFrameInfoCmd.accesskey;"
  620.                     oncommand="gContextMenu.viewFrameInfo();"/>
  621.         </menupopup>
  622.       </menu>
  623.       <menuseparator id="context-sep-properties"/>
  624.       <menuitem id="context-viewpartialsource-selection"
  625.                 label="&viewPartialSourceForSelectionCmd.label;"
  626.                 accesskey="&viewPartialSourceCmd.accesskey;"
  627.                 oncommand="gContextMenu.viewPartialSource('selection');"
  628.                 observes="isImage"/>
  629.       <menuitem id="context-viewpartialsource-mathml"
  630.                 label="&viewPartialSourceForMathMLCmd.label;"
  631.                 accesskey="&viewPartialSourceCmd.accesskey;"
  632.                 oncommand="gContextMenu.viewPartialSource('mathml');"
  633.                 observes="isImage"/>
  634.       <menuitem id="context-viewsource"
  635.                 label="&viewPageSourceCmd.label;"
  636.                 accesskey="&viewPageSourceCmd.accesskey;"
  637.                 oncommand="BrowserViewSourceOfDocument(gContextMenu.browser.contentDocument);"
  638.                 observes="isImage"/>
  639.       <menuitem id="context-viewinfo"
  640.                 label="&viewPageInfoCmd.label;"
  641.                 accesskey="&viewPageInfoCmd.accesskey;"
  642.                 oncommand="gContextMenu.viewInfo();"/>
  643.       <menuitem id="context-metadata"
  644.                 label="&metadataCmd.label;"
  645.                 accesskey="&metadataCmd.accesskey;"
  646.                 oncommand="gContextMenu.showMetadata();"/>
  647.       <menuseparator id="spell-separator"/>
  648.       <menuitem id="spell-check-enabled"
  649.                 label="&spellCheckEnable.label;"
  650.                 type="checkbox"
  651.                 accesskey="&spellCheckEnable.accesskey;"
  652.                 oncommand="InlineSpellCheckerUI.toggleEnabled();"/>
  653.       <menuitem id="spell-add-dictionaries-main"
  654.                 label="&spellAddDictionaries.label;"
  655.                 accesskey="&spellAddDictionaries.accesskey;"
  656.                 oncommand="gContextMenu.addDictionaries();"/>
  657.       <menu id="spell-dictionaries"
  658.             label="&spellDictionaries.label;"
  659.             accesskey="&spellDictionaries.accesskey;">
  660.           <menupopup id="spell-dictionaries-menu">
  661.               <menuseparator id="spell-language-separator"/>
  662.               <menuitem id="spell-add-dictionaries"
  663.                         label="&spellAddDictionaries.label;"
  664.                         accesskey="&spellAddDictionaries.accesskey;"
  665.                         oncommand="gContextMenu.addDictionaries();"/>
  666.           </menupopup>
  667.       </menu>
  668.       <menuseparator hidden="true" id="context-sep-bidi"/>
  669.       <menuitem hidden="true" id="context-bidi-text-direction-toggle"
  670.                 label="&bidiSwitchTextDirectionItem.label;"
  671.                 accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  672.                 command="cmd_switchTextDirection"/>
  673.       <menuitem hidden="true" id="context-bidi-page-direction-toggle"
  674.                 label="&bidiSwitchPageDirectionItem.label;"
  675.                 accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  676.                 oncommand="gContextMenu.switchPageDirection();"/>
  677.     </popup>
  678.  
  679.     <popup id="placesContext"/>
  680.  
  681.     <!-- Popup for site identity information -->
  682.     <panel id="identity-popup" position="after_start" hidden="true" noautofocus="true"
  683.            onpopupshown="document.getElementById('identity-popup-more-info-button').focus();"
  684.            level="top"
  685.            chromedir="&locale.dir;">
  686.       <hbox id="identity-popup-container" align="top">
  687.         <image id="identity-popup-icon"/>
  688.         <vbox id="identity-popup-content-box">
  689.           <label id="identity-popup-connectedToLabel" value="&identity.connectedTo;"/>
  690.           <label id="identity-popup-connectedToLabel2"
  691.                  value="&identity.unverifiedsite2;"/>
  692.           <description id="identity-popup-content-host"/>
  693.           <label id="identity-popup-runByLabel" value="&identity.runBy;"/>
  694.           <description id="identity-popup-content-owner"/>
  695.           <description id="identity-popup-content-supplemental"/>
  696.           <description id="identity-popup-content-verifier"/>
  697.           <hbox id="identity-popup-encryption" flex="1">
  698.             <vbox>
  699.               <image id="identity-popup-encryption-icon"/>
  700.               <spacer flex="1"/>
  701.             </vbox>
  702.             <description id="identity-popup-encryption-label" flex="1"/>
  703.           </hbox>
  704.           <spacer flex="1"/>
  705.           <!-- Footer button to open security page info -->
  706.           <hbox>
  707.             <spacer flex="1"/>
  708.             <button id="identity-popup-more-info-button"
  709.                     label="&identity.moreInfoLinkText;"
  710.                     onblur="gIdentityHandler.hideIdentityPopup();"
  711.                     oncommand="gIdentityHandler.handleMoreInfoClick(event);"/>
  712.           </hbox>
  713.         </vbox>
  714.       </hbox>
  715.     </panel>
  716.  
  717.     <tooltip id="urlTooltip">
  718.       <label crop="center" flex="1" class="tooltip-label"/>
  719.     </tooltip>
  720.   </popupset>
  721.  
  722.   <!-- bookmarks toolbar tooltip -->
  723.   <tooltip id="btTooltip" noautohide="true"
  724.            onpopupshowing="return BookmarksEventHandler.fillInBTTooltip(document.tooltipNode)">
  725.     <vbox id="btTooltipTextBox" flex="1">
  726.       <label id="btTitleText" class="tooltip-label" />
  727.       <label id="btUrlText" crop="center" class="tooltip-label" />
  728.     </vbox>
  729.   </tooltip>
  730.  
  731.   <toolbox id="navigator-toolbox" class="toolbox-top" mode="icons"
  732.            defaultmode="icons">
  733.     <!-- Menu -->
  734.     <toolbar type="menubar" id="toolbar-menubar" class="chromeclass-menubar" customizable="true"
  735.              defaultset="menubar-items"
  736.              mode="icons" iconsize="small" defaulticonsize="small"
  737.              context="toolbar-context-menu">
  738.       <toolbaritem id="menubar-items" align="center">
  739.  
  740.        <menubar id="main-menubar"
  741.                 style="border:0px;padding:0px;margin:0px;-moz-appearance:none">
  742.             <menu id="file-menu" label="&fileMenu.label;"
  743.                   accesskey="&fileMenu.accesskey;">
  744.               <menupopup id="menu_FilePopup" onpopupshowing="getContentAreaFrameCount();">
  745.                 <menuitem id="menu_newNavigator"
  746.                           label="&newNavigatorCmd.label;"
  747.                           accesskey="&newNavigatorCmd.accesskey;"
  748.                           key="key_newNavigator"
  749.                           command="cmd_newNavigator"/>
  750.                 <menuitem id="menu_newNavigatorTab"
  751.                           label="&tabCmd.label;"
  752.                           command="cmd_newNavigatorTab"
  753.                           key="key_newNavigatorTab"
  754.                           accesskey="&tabCmd.accesskey;"/>
  755.                 <menuitem id="menu_openLocation"
  756.                           label="&openLocationCmd.label;"
  757.                           command="Browser:OpenLocation"
  758.                           key="focusURLBar"
  759.                           accesskey="&openLocationCmd.accesskey;"/>
  760.                 <menuitem id="menu_openFile"
  761.                           label="&openFileCmd.label;"
  762.                           command="Browser:OpenFile"
  763.                           key="openFileKb"
  764.                           accesskey="&openFileCmd.accesskey;"/>
  765.                 <menuitem id="menu_closeWindow" hidden="true" command="cmd_closeWindow" key="key_closeWindow" label="&closeWindow.label;" accesskey="&closeWindow.accesskey;"/>
  766.                 <menuitem id="menu_close" label="&closeCmd.label;" key="key_close" accesskey="&closeCmd.accesskey;" command="cmd_close"/>
  767.                 <menuseparator/>
  768.                 <menuitem label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;" key="key_savePage" command="Browser:SavePage"
  769.                           id="menu_savePage" />
  770.                 <menuitem id="menu_saveFrame" label="&saveFrameCmd.label;" accesskey="&saveFrameCmd.accesskey;" command="Browser:SaveFrame" hidden="true"/>
  771.                 <menuitem id="menu_sendLink"  label="&sendPageCmd.label;"  accesskey="&sendPageCmd.accesskey;"  command="Browser:SendLink"/>
  772.                 <menuseparator/>
  773.                 <menuitem label="&printSetupCmd.label;" accesskey="&printSetupCmd.accesskey;" command="cmd_pageSetup"
  774.                           id="menu_printSetup" />
  775.                 <menuitem label="&printPreviewCmd.label;" accesskey="&printPreviewCmd.accesskey;" command="cmd_printPreview"
  776.                           id="menu_printPreview" />
  777.                 <menuitem label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="printKb" command="cmd_print"
  778.                           id="menu_print" />
  779.                 <menuseparator/>
  780.                 <menuitem label="&import.label;" accesskey="&import.accesskey;" oncommand="BrowserImport();"
  781.                           id="menu_import"/>
  782.                 <menuseparator/>
  783.                 <menuitem id="goOfflineMenuitem"
  784.                           label="&goOfflineCmd.label;" accesskey="&goOfflineCmd.accesskey;" 
  785.                           type="checkbox" oncommand="BrowserOffline.toggleOfflineStatus();"/>
  786.                 <menuitem id="menu_FileQuitItem" 
  787.         label="&quitApplicationCmdWin.label;"
  788.         accesskey="&quitApplicationCmdWin.accesskey;"
  789.         command="cmd_quitApplication"/>
  790.               </menupopup>
  791.             </menu>
  792.   
  793.             <menu id="edit-menu" label="&editMenu.label;"
  794.                   accesskey="&editMenu.accesskey;">
  795.               <menupopup id="menu_EditPopup"
  796.                          onpopupshowing="updateEditUIVisibility()"
  797.                          onpopuphidden="updateEditUIVisibility()">
  798.                 <menuitem label="&undoCmd.label;"
  799.                           id="menu_undo"
  800.                           key="key_undo"
  801.                           accesskey="&undoCmd.accesskey;"
  802.                           command="cmd_undo"/>
  803.                 <menuitem label="&redoCmd.label;"
  804.                           id="menu_redo"
  805.                           key="key_redo"
  806.                           accesskey="&redoCmd.accesskey;"
  807.                           command="cmd_redo"/>
  808.                 <menuseparator/>
  809.                 <menuitem label="&cutCmd.label;"
  810.                           id="menu_cut"
  811.                           key="key_cut"
  812.                           accesskey="&cutCmd.accesskey;"
  813.                           command="cmd_cut"/>
  814.                 <menuitem label="©Cmd.label;"
  815.                           id="menu_copy"
  816.                           key="key_copy"
  817.                           accesskey="©Cmd.accesskey;"
  818.                           command="cmd_copy"/>
  819.                 <menuitem label="&pasteCmd.label;"
  820.                           id="menu_paste"
  821.                           key="key_paste"
  822.                           accesskey="&pasteCmd.accesskey;"
  823.                           command="cmd_paste"/>
  824.                 <menuitem label="&deleteCmd.label;"
  825.                           id="menu_delete"
  826.                           key="key_delete"
  827.                           accesskey="&deleteCmd.accesskey;"
  828.                           command="cmd_delete"/>
  829.                 <menuseparator/>
  830.                 <menuitem id="menu_selectAll"
  831.                           label="&selectAllCmd.label;"
  832.                           key="key_selectAll"
  833.                           accesskey="&selectAllCmd.accesskey;"
  834.                           command="cmd_selectAll"/>
  835.                 <menuseparator/>
  836.                 <menuitem id="menu_find" label="&findOnCmd.label;" accesskey="&findOnCmd.accesskey;" key="key_find" command="cmd_find"/>
  837.                 <menuitem label="&findAgainCmd.label;" accesskey="&findAgainCmd.accesskey;" key="key_findAgain" command="cmd_findAgain"
  838.                           id="menu_findAgain" />
  839.                 <menuseparator hidden="true" id="textfieldDirection-separator"/>
  840.                 <menuitem id="textfieldDirection-swap"
  841.                           command="cmd_switchTextDirection"
  842.                           key="key_switchTextDirection"
  843.                           label="&bidiSwitchTextDirectionItem.label;"
  844.                           accesskey="&bidiSwitchTextDirectionItem.accesskey;"
  845.                           hidden="true"/>
  846.               </menupopup>
  847.             </menu>
  848.   
  849.             <menu id="view-menu" label="&viewMenu.label;" accesskey="&viewMenu.accesskey;">
  850.               <menupopup id="menu_viewPopup">
  851.                 <menu id="viewToolbarsMenu" label="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;"
  852.                       onpopupshowing="onViewToolbarsPopupShowing(event);">
  853.                   <menupopup>
  854.                     <menuseparator/>
  855.                       <menuitem label="&viewCustomizeToolbar.label;" accesskey="&viewCustomizeToolbar.accesskey;"
  856.                                 id="menu_customizeToolbars"
  857.                                 command="cmd_CustomizeToolbars"/>             
  858.                   </menupopup>
  859.                 </menu>
  860.                 <menuitem id="toggle_taskbar" label="&taskbarCmd.label;" accesskey="&taskbarCmd.accesskey;" type="checkbox" command="cmd_toggleTaskbar" checked="true" />
  861.                 <menu id="viewSidebarMenuMenu"
  862.                       label="&viewSidebarMenu.label;"
  863.                       accesskey="&viewSidebarMenu.accesskey;">
  864.                   <menupopup id="viewSidebarMenu">
  865.                     <menuitem key="viewBookmarksSidebarKb" observes="viewBookmarksSidebar" accesskey="&bookmarksSidebarCmd.accesskey;"
  866.                               id="menu_bookmarksSidebar" />
  867.                     <menuitem key="key_gotoHistory" observes="viewHistorySidebar" label="&historyButton.label;" accesskey="&historySidebarCmd.accesskey;"
  868.                               id="menu_historySidebar" />
  869.                   </menupopup>
  870.                 </menu>
  871.                 <menuseparator/>
  872.                 <menuitem label="&stopCmd.label;"
  873.                           id="menu_stop"
  874.                           accesskey="&stopCmd.accesskey;"
  875.                           command="Browser:Stop"
  876.                           key="key_stop"/>
  877.                 <menuitem label="&reloadCmd.label;" accesskey="&reloadCmd.accesskey;" key="key_reload"
  878.                           id="menu_reload"
  879.                           command="Browser:ReloadOrDuplicate"
  880.                           onclick="checkForMiddleClick(this, event);"/>
  881.                 <menuseparator/>
  882.                 <menu id="viewFullZoomMenu" label="&fullZoom.label;" accesskey="&fullZoom.accesskey;" onpopupshowing="FullZoom.updateMenu();">
  883.                   <menupopup>
  884.                     <menuitem key="key_fullZoomEnlarge" label="&fullZoomEnlargeCmd.label;" accesskey="&fullZoomEnlargeCmd.accesskey;"
  885.                               id="menu_zoomEnlarge" 
  886.                               command="cmd_fullZoomEnlarge"/>
  887.                     <menuitem key="key_fullZoomReduce"  label="&fullZoomReduceCmd.label;"  accesskey="&fullZoomReduceCmd.accesskey;"
  888.                               id="menu_zoomReduce"
  889.                               command="cmd_fullZoomReduce"/>
  890.                     <menuseparator/>
  891.                     <menuitem key="key_fullZoomReset" label="&fullZoomResetCmd.label;" accesskey="&fullZoomResetCmd.accesskey;"
  892.                               id="menu_zoomReset"
  893.                               command="cmd_fullZoomReset"/>
  894.                     <menuseparator/>
  895.                     <menuitem id="toggle_zoom" label="&fullZoomToggleCmd.label;" accesskey="&fullZoomToggleCmd.accesskey;"
  896.                               type="checkbox" command="cmd_fullZoomToggle" checked="false"/>
  897.                   </menupopup>
  898.                 </menu>
  899.                 <menu id="pageStyleMenu" label="&pageStyleMenu.label;" accesskey="&pageStyleMenu.accesskey;" observes="isImage">
  900.                   <menupopup onpopupshowing="stylesheetFillPopup(this);"
  901.                              oncommand="stylesheetSwitchAll(window.content, event.target.getAttribute('data')); setStyleDisabled(false);">
  902.                     <menuitem label="&pageStyleNoStyle.label;" accesskey="&pageStyleNoStyle.accesskey;"
  903.                               id="menu_pageStyleNoStyle"
  904.                               oncommand="setStyleDisabled(true); event.stopPropagation();" type="radio"/>
  905.                     <menuitem label="&pageStylePersistentOnly.label;" accesskey="&pageStylePersistentOnly.accesskey;" type="radio" checked="true"
  906.                               id="menu_pageStylePersistentOnly" />
  907.                     <menuseparator/>
  908.                   </menupopup>
  909.                 </menu>
  910.                 <menu id="charsetMenu"
  911.                       label="&charsetMenu.label;"
  912.                       accesskey="&charsetMenu.accesskey;"
  913.                       datasources="rdf:charset-menu"
  914.                       ref="NC:BrowserCharsetMenuRoot"
  915.                       oncommand="MultiplexHandler(event)"
  916.                       onpopupshowing="CreateMenu('browser');UpdateMenus(event)"
  917.                       onpopupshown="CreateMenu('more-menu');"
  918.                       observes="isImage">
  919.                     <template>
  920.                         <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  921.                             <menupopup>
  922.                             <menuseparator uri="..." />
  923.                             </menupopup>
  924.                         </rule>
  925.                         <rule>
  926.                             <menupopup>
  927.                             <menuitem type="radio" name="charsetGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  928.                             </menupopup>
  929.                         </rule>
  930.                     </template>
  931.       
  932.                     <menupopup>
  933.                     <menu label="&charsetMenuAutodet.label;" accesskey="&charsetMenuAutodet.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserAutodetMenuRoot">
  934.                         <template>
  935.                             <rule rdf:type="http://home.netscape.com/NC-rdf#CharsetDetector">
  936.                                 <menupopup>
  937.                                 <menuitem type="radio" name="detectorGroup" checked="rdf:http://home.netscape.com/NC-rdf#Checked" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  938.                                 </menupopup>
  939.                             </rule>
  940.                         </template>
  941.                         <menupopup>
  942.                         </menupopup>
  943.                     </menu>
  944.                     <menu label="&charsetMenuMore.label;" accesskey="&charsetMenuMore.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMoreCharsetMenuRoot">
  945.                         <template>
  946.                             <rule>
  947.                                 <menupopup>
  948.                                 <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  949.                                 </menupopup>
  950.                             </rule>
  951.                         </template>
  952.                         <menupopup>
  953.                             <menu label="&charsetMenuMore1.label;" accesskey="&charsetMenuMore1.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore1CharsetMenuRoot">
  954.                                 <template>
  955.                                     <rule>
  956.                                         <menupopup>
  957.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  958.                                         </menupopup>
  959.                                     </rule>
  960.                                 </template>
  961.                                 <menupopup>
  962.                                 </menupopup>
  963.                             </menu>
  964.                             <menu label="&charsetMenuMore2.label;" accesskey="&charsetMenuMore2.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore2CharsetMenuRoot">
  965.                                 <template>
  966.                                     <rule>
  967.                                         <menupopup>
  968.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  969.                                         </menupopup>
  970.                                     </rule>
  971.                                 </template>
  972.                                 <menupopup>
  973.                                 </menupopup>
  974.                             </menu>
  975.                             <menu label="&charsetMenuMore3.label;" accesskey="&charsetMenuMore3.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore3CharsetMenuRoot">
  976.                                 <template>
  977.                                     <rule>
  978.                                         <menupopup>
  979.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  980.                                         </menupopup>
  981.                                     </rule>
  982.                                 </template>
  983.                                 <menupopup>
  984.                                 </menupopup>
  985.                             </menu>
  986.                             <menu label="&charsetMenuMore4.label;" accesskey="&charsetMenuMore4.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore4CharsetMenuRoot">
  987.                                 <template>
  988.                                     <rule>
  989.                                         <menupopup>
  990.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  991.                                         </menupopup>
  992.                                     </rule>
  993.                                 </template>
  994.                                 <menupopup>
  995.                                 </menupopup>
  996.                             </menu>
  997.                             <menu label="&charsetMenuMore5.label;" accesskey="&charsetMenuMore5.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserMore5CharsetMenuRoot">
  998.                                 <template>
  999.                                     <rule>
  1000.                                         <menupopup>
  1001.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  1002.                                         </menupopup>
  1003.                                     </rule>
  1004.                                 </template>
  1005.                                 <menupopup>
  1006.                                 </menupopup>
  1007.                             </menu>
  1008.                             <menu label="&charsetMenuUnicode.label;" accesskey="&charsetMenuUnicode.accesskey;" datasources="rdf:charset-menu" ref="NC:BrowserUnicodeCharsetMenuRoot">
  1009.                                 <template>
  1010.                                     <rule>
  1011.                                         <menupopup>
  1012.                                         <menuitem uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  1013.                                         </menupopup>
  1014.                                     </rule>
  1015.                                 </template>
  1016.                                 <menupopup>
  1017.                                 </menupopup>
  1018.                             </menu>
  1019.                             <menuseparator />
  1020.                         </menupopup>
  1021.                     </menu>
  1022.                     <menuitem name="charsetCustomize" accesskey="&charsetCustomize.accesskey;" label="&charsetCustomize.label;" oncommand="window.openDialog('chrome://global/content/customizeCharset.xul','PrefWindow', 'chrome,modal=yes,resizable=yes', 'browser')"/>
  1023.                     </menupopup>
  1024.                 </menu>
  1025.                 <menuseparator/>
  1026.                 <menuitem accesskey="&pageSourceCmd.accesskey;" label="&pageSourceCmd.label;" key="key_viewSource" command="View:PageSource"
  1027.                           id="menu_pageSource" />
  1028.                 <menuitem accesskey="&fullScreenCmd.accesskey;"
  1029.                           label="&fullScreenCmd.label;" key="key_fullScreen"
  1030.                           id="fullScreenItem"
  1031.                           type="checkbox"
  1032.                           command="View:FullScreen"/>
  1033.                 <menuseparator hidden="true" id="documentDirection-separator"/>
  1034.                 <menuitem hidden="true" id="documentDirection-swap" 
  1035.                           label="&bidiSwitchPageDirectionItem.label;"
  1036.                           accesskey="&bidiSwitchPageDirectionItem.accesskey;"
  1037.                           oncommand="SwitchDocumentDirection(window.content)"/>
  1038.               </menupopup>
  1039.             </menu>
  1040.  
  1041.             <menu id="history-menu"
  1042.                   oncommand="var node = event.target.node; if (node) { PlacesUIUtils.markPageAsTyped(node.uri); openUILink(node.uri, event, false, true); }"
  1043.                   onclick="checkForMiddleClick(this, event);"
  1044.                   label="&historyMenu.label;"
  1045.                   accesskey="&historyMenu.accesskey;">
  1046.               <menupopup id="goPopup"
  1047.                          type="places"
  1048.                          onpopupshowing="HistoryMenu.onPopupShowing(this);"
  1049.                          place="place:type=0&sort=4&maxResults=10"
  1050.                          tooltip="btTooltip">
  1051.                 <menuitem id="historyMenuBack"
  1052.                           label="&backCmd.label;"
  1053.                           key="goBackKb"
  1054.                           chromedir="&locale.dir;"
  1055.                           command="Browser:BackOrBackDuplicate"
  1056.                           onclick="checkForMiddleClick(this, event);"/>
  1057.                 <menuitem id="historyMenuForward"
  1058.                           label="&forwardCmd.label;"
  1059.                           key="goForwardKb"
  1060.                           chromedir="&locale.dir;"
  1061.                           command="Browser:ForwardOrForwardDuplicate"
  1062.                           onclick="checkForMiddleClick(this, event);"/>
  1063.                 <menuitem id="historyMenuHome"
  1064.                           label="&historyHomeCmd.label;"
  1065.                           oncommand="BrowserGoHome(event);"
  1066.                           onclick="checkForMiddleClick(this, event);"
  1067.                           key="goHome"/>
  1068.                 <menuitem label="&showAllHistoryCmd2.label;"
  1069.                           id="menu_showAllHistory" 
  1070.                           key="showAllHistoryKb"
  1071.                           command="Browser:ShowAllHistory"/>
  1072.                 <menuseparator id="startHistorySeparator"/>
  1073.                 <menuseparator id="endHistorySeparator" builder="end"/>
  1074.                 <menu id="historyUndoMenu" label="&historyUndoMenu.label;" disabled="true">
  1075.                   <menupopup id="historyUndoPopup" onpopupshowing="HistoryMenu.populateUndoSubmenu();"/>
  1076.                 </menu>
  1077.                 <menu id="historyUndoWindowMenu"
  1078.                       label="&historyUndoWindowMenu.label;"
  1079.                       disabled="true">
  1080.                   <menupopup id="historyUndoWindowPopup"
  1081.                              onpopupshowing="HistoryMenu.populateUndoWindowSubmenu();"/>
  1082.                 </menu>
  1083.               </menupopup>
  1084.             </menu>
  1085.  
  1086.   <menu id="bookmarksMenu" 
  1087.         label="&bookmarksMenu.label;" accesskey="&bookmarksMenu.accesskey;"
  1088.         ondragenter="PlacesMenuDNDController.onBookmarksMenuDragEnter(event);"
  1089.         ondrop="nsDragAndDrop.drop(event, BookmarksMenuDropHandler);"
  1090.         ondragover="nsDragAndDrop.dragOver(event, BookmarksMenuDropHandler);"
  1091.         ondragexit="nsDragAndDrop.dragExit(event, BookmarksMenuDropHandler);">
  1092.     <menupopup id="bookmarksMenuPopup"
  1093.                type="places"
  1094.                place="place:folder=BOOKMARKS_MENU"
  1095.                context="placesContext"
  1096.                openInTabs="children"
  1097.                oncommand="BookmarksEventHandler.onCommand(event);"
  1098.                onclick="BookmarksEventHandler.onClick(event);"
  1099.                onpopupshowing="BookmarksEventHandler.onPopupShowing(event);"
  1100.                tooltip="btTooltip">
  1101.       <menuitem label="&bookmarkThisPageCmd.label;"
  1102.                 id="menu_bookmarkThisPage"
  1103.                 command="Browser:AddBookmarkAs" key="addBookmarkAsKb"/>
  1104.       <menuitem id="subscribeToPageMenuitem"
  1105.                 label="&subscribeToPageMenuitem.label;"
  1106.                 oncommand="return FeedHandler.subscribeToFeed(null, event);"
  1107.                 onclick="checkForMiddleClick(this, event);"
  1108.                 disabled="true"/>
  1109.       <menu id="subscribeToPageMenupopup"
  1110.             label="&subscribeToPageMenupopup.label;"
  1111.             hidden="true">
  1112.         <menupopup id="subscribeToPageSubmenuMenupopup" 
  1113.                    onpopupshowing="return FeedHandler.buildFeedList(event.target);"
  1114.                    oncommand="return FeedHandler.subscribeToFeed(null, event);"
  1115.                    onclick="checkForMiddleClick(this, event);"/>
  1116.       </menu>
  1117.       <menuitem label="&addCurPagesCmd.label;"
  1118.                 id="menu_bookmarkAllTabs"
  1119.                 command="Browser:BookmarkAllTabs" key="bookmarkAllTabsKb"/>
  1120.       <menuitem id="bookmarksShowAll"
  1121.                 label="&organizeBookmarks.label;"
  1122.                 command="Browser:ShowAllBookmarks"
  1123.                 key="manBookmarkKb"/>
  1124.       <menuseparator id="organizeBookmarksSeparator"/>
  1125.       <menu id="bookmarksToolbarFolderMenu"
  1126.             class="menu-iconic bookmark-item"
  1127.             label="&personalbarCmd.label;"
  1128.             container="true">
  1129.         <menupopup id="bookmarksToolbarFolderPopup"
  1130.                    type="places"
  1131.                    place="place:folder=TOOLBAR"
  1132.                    context="placesContext"
  1133.                    onpopupshowing="BookmarksEventHandler.onPopupShowing(event);"/>
  1134.       </menu>
  1135.       <menuseparator/>
  1136.     </menupopup>
  1137.   </menu>
  1138.  
  1139.             <menu id="tools-menu" label="&toolsMenu.label;" accesskey="&toolsMenu.accesskey;">
  1140.               <menupopup id="menu_ToolsPopup">
  1141.               <menuitem label="&search.label;" accesskey="&search.accesskey;" 
  1142.                         id="menu_search"
  1143.                         key="key_search" command="Tools:Search"/>
  1144.               <menuseparator id="browserToolsSeparator"/>
  1145.               <menuitem id="menu_openDownloads" label="&downloads.label;"
  1146.                         accesskey="&downloads.accesskey;"
  1147.                         key="key_openDownloads" command="Tools:Downloads"/>
  1148.               <menuitem id="menu_openAddons" label="&addons.label;"
  1149.                         accesskey="&addons.accesskey;" command="Tools:Addons"/>
  1150.               <menuseparator id="devToolsSeparator"/>
  1151.               <menuitem id="javascriptConsole" 
  1152.                         label="&errorConsoleCmd.label;" accesskey="&errorConsoleCmd.accesskey;" 
  1153.                         key="key_errorConsole" oncommand="toJavaScriptConsole();"/>
  1154.               <menuitem accesskey="&pageInfoCmd.accesskey;" label="&pageInfoCmd.label;"   
  1155.                         id="menu_pageInfo"
  1156.                         command="View:PageInfo"/>
  1157.               <menuseparator id="sanitizeSeparator"/>
  1158.               <menuitem id="privateBrowsingItem"
  1159.                         label="&privateBrowsingCmd.start.label;"
  1160.                         accesskey="&privateBrowsingCmd.start.accesskey;"
  1161.                         startlabel="&privateBrowsingCmd.start.label;"
  1162.                         startaccesskey="&privateBrowsingCmd.start.accesskey;"
  1163.                         stoplabel="&privateBrowsingCmd.stop.label;"
  1164.                         stopaccesskey="&privateBrowsingCmd.stop.accesskey;"
  1165.                         key="key_privatebrowsing" command="Tools:PrivateBrowsing"/>
  1166.               <menuitem id="sanitizeItem"
  1167.                         accesskey="&clearRecentHistoryCmd.accesskey;"
  1168.                         label="&clearRecentHistoryCmd.label;"
  1169.                         key="key_sanitize" command="Tools:Sanitize"/>
  1170.               <menuseparator id="prefSep"/>
  1171.               <menuitem id="menu_preferences"
  1172.                         label="&preferencesCmd.label;"
  1173.                         accesskey="&preferencesCmd.accesskey;"
  1174.                         oncommand="openPreferences();"/>
  1175.               </menupopup>
  1176.             </menu>
  1177.     
  1178.           <menu id="helpMenu" />
  1179.         </menubar>
  1180.       </toolbaritem>
  1181.     </toolbar>
  1182.  
  1183.     <toolbarpalette id="BrowserToolbarPalette">
  1184.  
  1185.       <toolbaritem id="unified-back-forward-button" class="chromeclass-toolbar-additional"
  1186.                    context="backForwardMenu">
  1187.         <toolbarbutton id="back-button" class="toolbarbutton-1"
  1188.                        chromedir="&locale.dir;"
  1189.                        label="&backCmd.label;"
  1190.                        command="Browser:BackOrBackDuplicate"
  1191.                        onclick="checkForMiddleClick(this, event);"
  1192.                        tooltiptext="&backButton.tooltip;"/>
  1193.         <toolbarbutton id="forward-button" class="toolbarbutton-1"
  1194.                        chromedir="&locale.dir;"
  1195.                        label="&forwardCmd.label;"
  1196.                        command="Browser:ForwardOrForwardDuplicate"
  1197.                        onclick="checkForMiddleClick(this, event);"
  1198.                        tooltiptext="&forwardButton.tooltip;"/>
  1199.         <toolbarbutton id="back-forward-dropmarker" type="menu" chromedir="&locale.dir;"
  1200.                        disabled="true" tooltiptext="&backForwardMenu.tooltip;"
  1201.                        onbroadcast="if (this.disabled) this.disabled =
  1202.                                       document.getElementById('Browser:Back').hasAttribute('disabled') &&
  1203.                                       document.getElementById('Browser:Forward').hasAttribute('disabled');">
  1204.           <!-- bug 415444: event.stopPropagation is here for the cloned version of
  1205.                this menupopup -->
  1206.           <menupopup context=""
  1207.                      chromedir="&locale.dir;"
  1208.                      position="after_start"
  1209.                      onpopupshowing="return FillHistoryMenu(event.target);"
  1210.                      oncommand="gotoHistoryIndex(event); event.stopPropagation();"
  1211.                      onclick="checkForMiddleClick(this, event);"/>
  1212.           <observes element="Browser:Back" attribute="disabled"/>
  1213.           <observes element="Browser:Forward" attribute="disabled"/>
  1214.         </toolbarbutton>
  1215.       </toolbaritem>
  1216.  
  1217.       <toolbarbutton id="reload-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1218.                      label="&reloadCmd.label;"
  1219.                      command="Browser:ReloadOrDuplicate"
  1220.                      onclick="checkForMiddleClick(this, event);"
  1221.                      tooltiptext="&reloadButton.tooltip;"/>
  1222.  
  1223.       <toolbarbutton id="stop-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1224.                      label="&stopCmd.label;"
  1225.                      command="Browser:Stop"
  1226.                      tooltiptext="&stopButton.tooltip;"/>
  1227.  
  1228.       <toolbarbutton id="home-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1229.                      persist="class"
  1230.                      label="&homeButton.label;"
  1231.                      ondragover="nsDragAndDrop.dragOver(event, homeButtonObserver);"
  1232.                      ondragdrop="nsDragAndDrop.drop(event, homeButtonObserver);"
  1233.                      ondragexit="nsDragAndDrop.dragExit(event, homeButtonObserver);"
  1234.                      onclick="BrowserGoHome(event);"/>
  1235.  
  1236.       <toolbaritem id="urlbar-container" align="center" flex="400" persist="width"
  1237.                    title="&locationItem.title;" class="chromeclass-location">
  1238.         <textbox id="urlbar" flex="1"
  1239.                  bookmarkhistoryemptytext="&urlbar.bookmarkhistory.emptyText;"
  1240.                  bookmarkemptytext="&urlbar.bookmark.emptyText;"
  1241.                  historyemptytext="&urlbar.history.emptyText;"
  1242.                  noneemptytext="&urlbar.none.emptyText;"
  1243.                  chromedir="&locale.dir;"
  1244.                  type="autocomplete"
  1245.                  autocompletesearch="history"
  1246.                  autocompletepopup="PopupAutoCompleteRichResult"
  1247.                  completeselectedindex="true"
  1248.                  tabscrolling="true"
  1249.                  showcommentcolumn="true"
  1250.                  showimagecolumn="true"
  1251.                  enablehistory="true"
  1252.                  maxrows="6"
  1253.                  newlines="stripsurroundingwhitespace"
  1254.                  oninput="gBrowser.userTypedValue = this.value;"
  1255.                  ontextentered="this.handleCommand(param);"
  1256.                  ontextreverted="return this.handleRevert();"
  1257.                  pageproxystate="invalid"
  1258.                  onsearchbegin="LocationBarHelpers._searchBegin();"
  1259.                  onsearchcomplete="LocationBarHelpers._searchComplete();"
  1260.                  onfocus="document.getElementById('identity-box').style.MozUserFocus= 'normal'"
  1261.                  onblur="document.getElementById('identity-box').style.MozUserFocus = 'ignore';">
  1262.           <!-- Use onclick instead of normal popup= syntax since the popup
  1263.                code fires onmousedown, and hence eats our favicon drag events.
  1264.                We only add the identity-box button to the tab order when the location bar
  1265.                has focus, otherwise pressing F6 focuses it instead of the location bar -->
  1266.           <box id="identity-box" role="button"
  1267.                chromedir="&locale.dir;"
  1268.                onclick="gIdentityHandler.handleIdentityButtonEvent(event);"
  1269.                onkeypress="gIdentityHandler.handleIdentityButtonEvent(event);">
  1270.             <hbox align="center">
  1271.               <stack id="page-proxy-stack"
  1272.                      onclick="PageProxyClickHandler(event);">
  1273.                 <image id="urlbar-throbber" busy="false"/>
  1274.                 <image id="page-proxy-favicon" validate="never"
  1275.                        pageproxystate="invalid"
  1276.                        ondraggesture="PageProxyDragGesture(event);"
  1277.                        onerror="this.removeAttribute('src');"/>
  1278.               </stack>
  1279.               <label id="identity-icon-label" crop="center" flex="1"/>
  1280.             </hbox>
  1281.           </box>
  1282.           <hbox id="urlbar-icons">
  1283.             <button type="menu"
  1284.                     style="-moz-user-focus: none"
  1285.                     class="plain urlbar-icon"
  1286.                     id="feed-button"
  1287.                     chromedir="&locale.dir;"
  1288.                     onclick="return FeedHandler.onFeedButtonClick(event);">
  1289.               <menupopup position="after_end"
  1290.                          onpopupshowing="return FeedHandler.buildFeedList(this);"
  1291.                          oncommand="return FeedHandler.subscribeToFeed(null, event);"
  1292.                          onclick="checkForMiddleClick(this, event);"/>
  1293.             </button>
  1294.             <image id="star-button"
  1295.                    class="urlbar-icon"
  1296.                    onclick="PlacesStarButton.onClick(event);"/>
  1297.             <image id="go-button"
  1298.                    chromedir="&locale.dir;"
  1299.                    class="urlbar-icon"
  1300.                    tooltiptext="&goEndCap.tooltip;"
  1301.                    onclick="gURLBar.handleCommand(event);"/>
  1302.           </hbox>
  1303.         </textbox>
  1304.       </toolbaritem>
  1305.  
  1306.       <toolbaritem id="search-container" title="&searchItem.title;"
  1307.                    align="center" class="chromeclass-toolbar-additional"
  1308.                    flex="100" persist="width">
  1309.         <searchbar id="searchbar" flex="1" chromedir="&locale.dir;"/>
  1310.       </toolbaritem>
  1311.  
  1312.       <toolbarbutton id="print-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1313.                      label="&printButton.label;" command="cmd_print"
  1314.                      tooltiptext="&printButton.tooltip;"/>
  1315.  
  1316.       <toolbaritem id="navigator-throbber" title="&throbberItem.title;" align="center" pack="center"
  1317.                    mousethrough="always">
  1318.         <image/>
  1319.       </toolbaritem>
  1320.  
  1321.       <toolbaritem flex="1" id="personal-bookmarks" title="&bookmarksItem.title;">
  1322.          <hbox id="bookmarksBarContent" flex="1"
  1323.                type="places"
  1324.                place="place:folder=TOOLBAR"
  1325.                context="placesContext"
  1326.                onclick="BookmarksEventHandler.onClick(event);"
  1327.                oncommand="BookmarksEventHandler.onCommand(event);"
  1328.                onpopupshowing="BookmarksEventHandler.onPopupShowing(event);"
  1329.                tooltip="btTooltip"/>
  1330.       </toolbaritem>
  1331.  
  1332.         <toolbarbutton id="downloads-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1333.                        observes="Tools:Downloads"
  1334.                        ondragdrop="nsDragAndDrop.drop(event, DownloadsButtonDNDObserver); event.stopPropagation()"
  1335.                        ondragover="nsDragAndDrop.dragOver(event, DownloadsButtonDNDObserver); event.stopPropagation()"
  1336.                        ondragenter="nsDragAndDrop.dragEnter(event, DownloadsButtonDNDObserver); event.stopPropagation()"
  1337.                        ondragexit="nsDragAndDrop.dragExit(event, DownloadsButtonDNDObserver); event.stopPropagation()"
  1338.                        label="&downloads.label;"
  1339.                        tooltiptext="&downloads.tooltip;"/>
  1340.  
  1341.         <toolbarbutton id="history-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1342.                        observes="viewHistorySidebar" label="&historyButton.label;"
  1343.                        tooltiptext="&historyButton.tooltip;"/>
  1344.  
  1345.         <toolbarbutton id="bookmarks-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1346.                        observes="viewBookmarksSidebar"
  1347.                        tooltiptext="&bookmarksButton.tooltip;"
  1348.                        ondragover="nsDragAndDrop.dragOver(event, bookmarksButtonObserver);"
  1349.                        ondragdrop="nsDragAndDrop.drop(event, bookmarksButtonObserver);"
  1350.                        ondragexit="nsDragAndDrop.dragExit(event, bookmarksButtonObserver);"/>
  1351.  
  1352.         <toolbarbutton id="new-tab-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1353.                        label="&tabCmd.label;"
  1354.                        command="cmd_newNavigatorTab"
  1355.                        ondragover="nsDragAndDrop.dragOver(event, newTabButtonObserver);"
  1356.                        ondragdrop="nsDragAndDrop.drop(event, newTabButtonObserver);"
  1357.                        ondragexit="nsDragAndDrop.dragExit(event, newTabButtonObserver);"/>
  1358.  
  1359.         <toolbarbutton id="new-window-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1360.                        label="&newNavigatorCmd.label;"
  1361.                        command="key_newNavigator"
  1362.                        tooltiptext="&newWindowButton.tooltip;"
  1363.                        ondragover="nsDragAndDrop.dragOver(event, newWindowButtonObserver);"
  1364.                        ondragdrop="nsDragAndDrop.drop(event, newWindowButtonObserver);"
  1365.                        ondragexit="nsDragAndDrop.dragExit(event, newWindowButtonObserver);"/>
  1366.  
  1367.         <toolbarbutton id="cut-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1368.                        label="&cutCmd.label;"
  1369.                        command="cmd_cut"
  1370.                        tooltiptext="&cutButton.tooltip;"/>
  1371.  
  1372.         <toolbarbutton id="copy-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1373.                        label="©Cmd.label;"
  1374.                        command="cmd_copy"
  1375.                        tooltiptext="©Button.tooltip;"/>
  1376.  
  1377.         <toolbarbutton id="paste-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
  1378.                        label="&pasteCmd.label;"
  1379.                        command="cmd_paste"
  1380.                        tooltiptext="&pasteButton.tooltip;"/>
  1381.  
  1382.     </toolbarpalette>
  1383.  
  1384.     <toolbar id="nav-bar" class="toolbar-primary chromeclass-toolbar"
  1385.              toolbarname="&navbarCmd.label;" accesskey="&navbarCmd.accesskey;"
  1386.              fullscreentoolbar="true" mode="icons" iconsize="large"
  1387.              customizable="true"
  1388.              defaultset="unified-back-forward-button,reload-button,stop-button,home-button,urlbar-container,search-container,fullscreenflex,window-controls"
  1389.              context="toolbar-context-menu">
  1390.       <hbox id="fullscreenflex" flex="1" hidden="true" fullscreencontrol="true"/>
  1391.       <hbox id="window-controls" hidden="true" fullscreencontrol="true">
  1392.         <toolbarbutton id="minimize-button" class="toolbarbutton-1"
  1393.                        tooltiptext="&fullScreenMinimize.tooltip;"
  1394.                        oncommand="window.minimize();"/>
  1395.  
  1396.         <toolbarbutton id="restore-button" class="toolbarbutton-1"
  1397.                        tooltiptext="&fullScreenRestore.tooltip;"
  1398.                        oncommand="BrowserFullScreen();"/>
  1399.  
  1400.         <toolbarbutton id="close-button" class="toolbarbutton-1"
  1401.                        tooltiptext="&fullScreenClose.tooltip;"
  1402.                        oncommand="BrowserTryToCloseWindow();"/>
  1403.       </hbox>
  1404.     </toolbar>
  1405.  
  1406.     <toolbarset id="customToolbars" context="toolbar-context-menu"/>
  1407.  
  1408.     <toolbar id="PersonalToolbar"
  1409.              mode="icons" iconsize="small" defaulticonsize="small"
  1410.              class="chromeclass-directories"
  1411.              context="toolbar-context-menu"
  1412.              defaultset="personal-bookmarks"
  1413.              toolbarname="&personalbarCmd.label;" accesskey="&personalbarCmd.accesskey;"
  1414.              customizable="true"/>
  1415.   </toolbox>
  1416.  
  1417.   <hbox flex="1" id="browser">
  1418.     <vbox id="sidebar-box" hidden="true" class="chromeclass-extrachrome">
  1419.       <sidebarheader align="center">
  1420.         <label id="sidebar-title" persist="value" flex="1" crop="end" control="sidebar"/>
  1421.         <image id="sidebar-throbber"/>
  1422.         <toolbarbutton class="tabs-closebutton" tooltiptext="&sidebarCloseButton.tooltip;" oncommand="toggleSidebar();"/>
  1423.       </sidebarheader>
  1424.       <browser id="sidebar" flex="1" autoscroll="false" disablehistory="true"
  1425.                 style="min-width: 14em; width: 18em; max-width: 36em;"/>
  1426.     </vbox>
  1427.  
  1428.     <splitter id="sidebar-splitter" class="chromeclass-extrachrome" hidden="true"/>
  1429.     <vbox id="appcontent" flex="1">
  1430.       <tabbrowser id="content" disablehistory="true"
  1431.                   flex="1" contenttooltip="aHTMLTooltip"
  1432.                   contentcontextmenu="contentAreaContextMenu"
  1433.                   onnewtab="BrowserOpenTab();"
  1434.                   autocompletepopup="PopupAutoComplete"
  1435.                   ondrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);"
  1436.                   onclick="return contentAreaClick(event, false);"/>
  1437.     </vbox>
  1438.   </hbox>
  1439.  
  1440.   <vbox id="browser-bottombox">
  1441.     <findbar browserid="content" id="FindToolbar"/>
  1442.   
  1443.     <statusbar class="chromeclass-status" id="status-bar"
  1444.                ondrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
  1445.       <statusbarpanel id="statusbar-display" label="" flex="1"/>
  1446.       <statusbarpanel class="statusbarpanel-progress" collapsed="true" id="statusbar-progresspanel">
  1447.         <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
  1448.       </statusbarpanel>
  1449.       <statusbarpanel id="download-monitor" class="statusbarpanel-iconic-text"
  1450.                       tooltiptext="&downloadMonitor2.tooltip;" hidden="true"
  1451.                       command="Tools:Downloads"/>
  1452.       <statusbarpanel id="security-button" class="statusbarpanel-iconic-text"
  1453.                       hidden="true"
  1454.                       ondblclick="if (event.button == 0) displaySecurityInfo();"/>
  1455.       <statusbarpanel id="page-report-button" type="menu"
  1456.                       class="statusbarpanel-menu-iconic"
  1457.                       tooltiptext="&pageReportIcon.tooltip;">
  1458.         <menupopup onpopupshowing="gPopupBlockerObserver.fillPopupList(event);">
  1459.           <menuitem observes="blockedPopupAllowSite"/>
  1460.           <menuitem observes="blockedPopupEditSettings"/>
  1461.           <menuitem observes="blockedPopupDontShowMessage"/>
  1462.           <menuseparator observes="blockedPopupsSeparator"/>
  1463.         </menupopup>
  1464.       </statusbarpanel>
  1465.     </statusbar>
  1466.   </vbox>
  1467. </window>
  1468.